package com.app.push.dao;

import com.app.push.model.PushUser;
import com.app.sysmodule.dao.BaseDao;
import com.app.sysmodule.exception.DBException;

import java.util.List;

/**
 * Created by song on 2018/1/12.
 */
public interface UPushDao extends BaseDao<PushUser>{
    /**
     * 保存推送人员信息
     * @param deviceId
     * @return
     */
    PushUser findUserByDeviceId(String deviceId) throws DBException;

    /**
     * 根据用户id获取deviceToken
     * @param users
     * @return
     */
    List<String> getDeviceToken(List<String> users,String type);
}
